<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
    <style>
      p {
        font-size: 40px;
        text-align: center;
        margin: auto;
      }
     
      label {
        font-size: 15px;
      }
     
      input {
        height: 25px;
        width: 250px;
        margin-top: 5px;
      }
     
      .sel {
        margin-top: 10px;
        display: block;
        font-size: 13px;
      }
     
      .sel input {
        width: 10px;
        height: 10px;
        margin: 2px;
      }
     
      a {
        color: blue;
        text-decoration: none;
      }
     
      a:hover {
        cursor: pointer;
        color: rgb(55, 85, 138);
      }
     
      button {
        width: 200px;
        height: 45px;
        margin-left: 70px;
        font-size: large;
        background-color: rgb(88, 84, 156);
        color: #fff;
      }
     
      button:hover {
        cursor: pointer;
        background-color: rgb(94, 123, 174);
      }
     
      #vcode {
        height: 35px;
        width: 150px;
        font-size: 15px;
        border-radius: 5px;
        border: 1;
        padding-left: 8px;
      }
     
      #code {
        color: #ffffff;
        background-color: #000000f7;
        font-size: 20px;
        padding: 5px 35px 10px 35px;
        margin-left: 5%;
        cursor: pointer;
      }
     
      #search_pass_link {
        width: 70%;
        text-align: right;
        margin: 0 auto;
        padding: 5px;
      }
     
      .btns {
        width: 30%;
        margin-left: 13%;
        height: 40px;
        border: 0;
        font-size: 14pt;
        cursor: pointer;
        border-radius: 20px;
        border: 0;
      }
    </style>
  
  </head>
  
 
    <h1 style="text-align: center;">welcome！！</h1>
    <p>欢迎来到图书管理系统</p>
    <div >
      
    <a href="/login">登录</a>
    <a href="/day8/views/server/server.js">注册新用户</a>
    <a href="">忘记密码？</a>
    <a href="">注册新用户</a>
    <br />
  </div>
      <a href="#">查看相关服务条款和隐私政策</a><br />
      <label for="" class="sel"><input type="checkbox" />我已阅读并同意服务提条款和隐私政策</label><br />
     
    </div>
  </div>
  </body>
  <script type="text/javascript">
    var code; //声明一个变量用于存储生成的验证码
    document.getElementById("code").onclick = changeImg;
    function changeImg() {
      var arrays = new Array(
        '1', '2', '3', '4', '5', '6', '7', '8', '9', '0',
        'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',
        'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't',
        'u', 'v', 'w', 'x', 'y', 'z',
        'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',
        'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',
        'U', 'V', 'W', 'X', 'Y', 'Z'
      );
      code = '';
      for (var i = 0; i < 4; i++) {
        var r = parseInt(Math.random() * arrays.length);
        code += arrays[r];
      }
      document.getElementById('code').innerHTML = code;
    }
    function check() {
      var input_code = document.getElementById('vcode').value;
      if (input_code.toLowerCase() == code.toLowerCase()) {
        return true;
      }
        alert("请输入正确的验证码!");
        return false;
      }
    </script>
     <img src="https://img2.baidu.com/it/u=1284067834,795624223&fm=253&fmt=auto&app=120&f=JPEG?w=1422&h=800">
</html>
